
/*
 * @(#)ListFormSubmissionForm.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.form.web;

import java.util.HashMap;
import java.util.Map;

import com.dcivision.framework.web.AbstractSearchForm;

/**
  ListFormSubmissionForm.java

  The ActionForm for ListFormSubmission

    @author          Tony Chen
    @company         DCIVision Limited
    @creation date   17/01/2003
    @version         $Revision: 1.15.8.1 $
*/
public class ListFormSubmissionForm extends AbstractSearchForm {

  public static final String REVISION = "$Revision: 1.15.8.1 $";


  public ListFormSubmissionForm() {
    super();
    this.setSortAttribute("TITLE");
    this.setSortOrder("ASC");
    this.setSubmitSortAttribute("UPDATE_DATE");
    this.setSubmitSortOrder("DESC");
    
    this.addSearchableAttribute("searchFormDisplayType");
    this.addSearchableAttribute("fromDate");
    this.addSearchableAttribute("toDate");
  }

  String fromDate = "";
  String toDate = "";
  String formRecordID = "";
  String function = "";
  private String searchSubmitter = null;
  private Integer formGroupID = null;
  private String searchFormType = null;

  private String selectionSearchField = null;
  private String selectionSearchKeyword = null;
  private String datePickerSearchField = null;
  private String datePickerSearchKeywordFrom = null;
  private String datePickerSearchKeywordTo = null;
  private String displayFormat = null;
  private String searchFormDisplayType = null;
  private String curSubmissionStartRowNo = "1";
  private String submitSortAttribute = "";
  private String submitSortOrder = "";
  private String workflowRecordID = "";
  private Integer workflowStepID = null;
  private Integer progressID = null;
  private Integer submissionID = null;
  
  private Map searchPanelMap = new HashMap();
  private String[] basicSelectedID1 = null;
  private boolean delSubmitRecordFlag = false;
  
  //search condition for audit trade
  private String[] displayElementField = null;
  private int displayElementFieldRowCount = 1;
    
  public String getFromDate() {
      return this.fromDate;
  }

  public void setFromDate(String fromDate) {
    this.fromDate = fromDate;
  }

  public String getToDate() {
      return this.toDate;
  }

  public void setToDate(String toDate) {
    this.toDate = toDate;
  }

  public String getFormRecordID() {
      return this.formRecordID;
  }

  public void setFormRecordID(String formRecordID) {
    this.formRecordID = formRecordID;
  }

  public String getFunction(String function) {
    return this.function;
  }

  public void setFunction (String function) {
    this.function = function;
  }

  public String getSearchSubmitter() {
    return(this.searchSubmitter);
  }

  public void setSearchSubmitter(String searchSubmitter) {
    this.searchSubmitter = searchSubmitter;
  }
  
  public Integer getFormGroupID() {
    return(this.formGroupID);
  }

  public void setFormGroupID(Integer formGroupID) {
    this.formGroupID = formGroupID;
  }

  public String getSearchFormType() {
    return searchFormType;
  }
    
  public void setSearchFormType(String searchFormType) {
    this.searchFormType = searchFormType;
  }
   
  public String getDatePickerSearchField() {
  	return datePickerSearchField;
  }
  
  public void setDatePickerSearchField(String datePickerSearchField) {
  	this.datePickerSearchField = datePickerSearchField;
  }
  
  public String getDatePickerSearchKeywordFrom() {
  	return datePickerSearchKeywordFrom;
  }
  
  public void setDatePickerSearchKeywordFrom(String datePickerSearchKeywordFrom) {
  	this.datePickerSearchKeywordFrom = datePickerSearchKeywordFrom;
  }
  
  public String getDatePickerSearchKeywordTo() {
  	return datePickerSearchKeywordTo;
  }
  
  public void setDatePickerSearchKeywordTo(String datePickerSearchKeywordTo) {
  	this.datePickerSearchKeywordTo = datePickerSearchKeywordTo;
  }
  
  public String getSelectionSearchField() {
  	return selectionSearchField;
  }
  public void setSelectionSearchField(String selectionSearchField) {
  	this.selectionSearchField = selectionSearchField;
  }
  
  public String getSelectionSearchKeyword() {
  	return selectionSearchKeyword;
  }
  
  public void setSelectionSearchKeyword(String selectionSearchKeyword) {
  	this.selectionSearchKeyword = selectionSearchKeyword;
  }
  
  
  public Map getSearchPanelMap() {
  	return searchPanelMap;
  }
  
  public void setSearchPanelMap(Map searchPanelMap) {
  	this.searchPanelMap = searchPanelMap;
  }
   
  public String getDisplayFormat() {
  	return displayFormat;
  }
  
  public String getSearchFormDisplayType() {
    return searchFormDisplayType;
  }
  
  public void setSearchFormDisplayType(String searchFormDisplayType) {
    this.searchFormDisplayType = searchFormDisplayType;
  }
  
  public void setDisplayFormat(String displayFormat) {
  	this.displayFormat = displayFormat;
  }

  public String getCurSubmissionStartRowNo() {
  	return curSubmissionStartRowNo;
  }
  
  public void setCurSubmissionStartRowNo(String curSubmissionStartRowNo) {
  	this.curSubmissionStartRowNo = curSubmissionStartRowNo;
  }
    
  public String getSubmitSortAttribute() {
  	return submitSortAttribute;
  }
  
  public void setSubmitSortAttribute(String submitSortAttribute) {
  	this.submitSortAttribute = submitSortAttribute;
  }
  
  public String getSubmitSortOrder() {
  	return submitSortOrder;
  }
  
  public void setSubmitSortOrder(String submitSortOrder) {
  	this.submitSortOrder = submitSortOrder;
  }  
  
  public String getWorkflowRecordID() {
    return workflowRecordID;
  }
  
  public void setWorkflowRecordID(String workflowRecordID) {
    this.workflowRecordID = workflowRecordID;
  }
 
  public Integer getWorkflowStepID() {
    return workflowStepID;
  }
  
  public void setWorkflowStepID(Integer workflowStepID) {
    this.workflowStepID = workflowStepID;
  }
  
  public Integer getProgressID() {
    return progressID;
  }
  
  public void setProgressID(Integer progressID) {
    this.progressID = progressID;
  }
    
  public Integer getSubmissionID() {
    return submissionID;
  }
  
  public void setSubmissionID(Integer submissionID) {
    this.submissionID = submissionID;
  }
  
  public String[] getBasicSelectedID1() {
    return(this.basicSelectedID1);
  }

  public void setBasicSelectedID1(String[] basicSelectedID1) {
    this.basicSelectedID1 = basicSelectedID1;
  }
  
  public boolean isDelSubmitRecordFlag() {
	  return delSubmitRecordFlag;
  }

  public void setDelSubmitRecordFlag(boolean delSubmitRecordFlag) {
	  this.delSubmitRecordFlag = delSubmitRecordFlag;
  }
  
  public String[] getDisplayElementField() {
    return displayElementField;
  }
    
  public void setDisplayElementField(String[] displayElementField) {
    this.displayElementField = displayElementField;
  }

  public int getDisplayElementFieldRowCount() {
    return displayElementFieldRowCount;
  }
    
  public void setDisplayElementFieldRowCount(int displayElementFieldRowCount) {
    this.displayElementFieldRowCount = displayElementFieldRowCount;
  }

}
